package com.bidepan.config;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestUser {
    @Test
    public void test(){
        //加载配置类来代替引入xml配置文件
        ApplicationContext context = new AnnotationConfigApplicationContext(mySpringConfig.class);
        User user = context.getBean(User.class);
        System.out.println(user);
    }
}
